<template>
    <div>
      <el-row  :gutter="10">
        <el-col :span="4">
          <div class="label">列项<span style="color: red">*</span></div>
        </el-col>
        <el-col :span="24">
          <FormulaIItemGroup :prop="prop"/>
        </el-col>
      </el-row>
      <el-row  :gutter="10">
        <el-col :span="4">
          <div class="label">公式<span style="color: red">*</span></div>
        </el-col>
        <el-col :span="24">
          <FormulaExpressionGroup :prop="prop"/>
        </el-col>
      </el-row>
      <el-row  :gutter="10" style="margin: 10px 0px ">
        <el-col :span="6">
          <div class="label">结果单位</div>
        </el-col>
        <el-col :span="24">
          <KindEditor placeholder="请输入单位" :content.sync="prop.resultUnit" editor-type="Input"/>
<!--          <el-input v-model="prop.resultUnit" placeholder="请输入单位"/>-->
        </el-col>
      </el-row>
    </div>
</template>

<script>
  import FormulaIItemGroup from "./formulacomp/FormulaIItemGroup";
  import FormulaExpressionGroup from "./formulacomp/FormulaExpressionGroup";
  import KindEditor from "../kindeditor/KindEditor";
  export default {
    props: ['prop'],
    data() {
      return {}
    },
    components: {
      KindEditor,
      FormulaIItemGroup,
      FormulaExpressionGroup,
    }
  }
</script>

<style scoped>
  .label {
    float: left;
  }
</style>
